<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>商机指派</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css">
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/yxsjzp/index"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>
    <style>

        .mui-control-content {
            min-height: -webkit-fill-available;
        }

        .mui-bar-nav ~ .mui-content .mui-pull-top-pocket {
            top: 0;
        }

        .mui-table-view-cell:after {
            height: 0;
        }

        .mui-card {
            margin-bottom: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -3px;
            left: 10px !important;
        }

        .footBtn button {
            font-size: 15px;
        }

        .footBtn.flexl .mui-checkbox.mui-left label {
            padding-left: 36px;
        }

        .mui-slider {
            position: initial;
        }

        .mui-fullscreen .mui-segmented-control ~ .mui-slider-group {
            top: 86px;
        }
        .mui-slider-group{
            top: 105px !important;
        }

        .mui-slider{
            margin-top: 58px !important;
        }
    </style>

</head>

<body>
<div class="mui-content mui-fullscreen">
    <div id="searchDiv" class="mui-input-row searchBox">
        <form action="javascript:app.returnFalse();">
            <i class="mui-icon mui-icon-search"></i>
            <input @search="toSearch" type="search" class="mui-input-clear" placeholder="产品编号|客户编号|客户名称"
                   v-model.trim="keyword">
        </form>
    </div>

    <div id="slider" class="mui-slider responseSlider xdcx wf-slider-bottom">
        <div id="sliderSegmentedControl"
             class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted shadow p65">
            <a class="mui-control-item" href="#item1mobile">
                未指派
            </a>
            <a class="mui-control-item" href="#item2mobile">
                已指派
            </a>
        </div>
        <div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-6"></div>
        <div class="mui-slider-group">
            <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
                <div id="scroll1" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <sjzpitem-template :model="items"></sjzpitem-template>
                    </div>
                </div>
            </div>
            <div id="item2mobile" class="mui-slider-item mui-control-content">
                <div id="scroll2" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <sjzpitem-template :model="items"></sjzpitem-template>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="footdiv" class="footBtn flexl shadow2">
    <div class="mui-checkbox mui-left" style="flex: 1;">
        <label>全选</label>
        <input v-model="ischecked" @change="toChecked" :true-value="'1'" :false-value="'0'" type="checkbox"
               style="top: 17px;">
    </div>

    <button v-show="inx==1" @tap.stop="toCancel" type="button" class="wf-pulic-bg edit" style="width: 50%;">取消提交
    </button>
    <button v-show="inx==0" @tap.stop="toSubmit" type="button" class="wf-second-bg edit" style="width: 30%;">提交</button>
    <button v-show="inx==0" @tap.stop="toDelete" type="button" class="wf-pulic-bg edit" style="width: 30%;">作废</button>
</div>

<script id="sjzpitem-template" type="text/x-template">
    <div>
        <div v-for="val in model" class="mui-card">
            <div class="mui-card-header">
                <div class="mui-checkbox mui-left" style="flex: 1 1 0%;">
                    <label>{{val.GWAKL003}}({{val.GWCM009||val.GWCO012}})</label>
                    <input v-model="val.ischecked" :true-value="'1'" :false-value="'0'" type="checkbox"
                           style="left: -5px; top:0;">
                </div>
                <p><i class="iconfont icon icon-0011"></i>{{val.GWCMDOCDATE||val.GWCODOCDATE}}</p>
            </div>
            <div @tap.stop="showDetail(val)" class="mui-card-content">
                <div class="mui-card-content-inner slider mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted child">
                    <div class="mui-scroll">
                        <ul>
                            <li v-for="c in val.details" class="mui-control-item swiper-slide">
                                <a href="#"><img :src="c.GWAM015 | goodsImgsUtils"></a>
                                <div class="filer">
                                    <p>￥{{c.GWCM004||c.GWCO004 |priceFMT}}<em>/</em>
                                        <span>{{c.GWCM003||c.GWCO003}}</span></p>
                                    <p class="wf-font-color"><i class="iconfont icon icon-0012"></i>
                                        {{c.GWCM005||c.GWCO005|priceFMT}}</p>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="flex-just" style="padding: 5px 15px">
                    <p>单号：{{val.GWCMDOCNO||val.GWCODOCNO}}</p>
                    <!--<p class="wf-font-color">¥1000.00</p>-->
                </div>
            </div>
            <div class="mui-card-footer" :class="statueImg(val)">
                <p>
                    <a v-if="val.status=='2'" @tap.stop="toCancel(val)" href="javascript:;"
                       class="wf-font-color wf-border-color">取消提交</a>
                    <a v-if="val.status=='1'" @tap.stop="toSubmit(val)" href="javascript:;"
                       class="wf-sfont-color wf-sborder-color">提交</a>
                    <a v-if="val.status=='1'" @tap.stop="toDelete(val)" href="javascript:;"
                       class="wf-font-color wf-border-color">作废</a>
                </p>
            </div>
        </div>
    </div>
</script>
</body>
</html>